Skip to content

Fix backwards compatability with Lua.workspace.checkThirdParty (take 2!)#2409

Merged
sumneko merged 2 commits intoLuaLS:masterfrom
9999years:fix-back-compat-take-2
Nov 9, 2023
Merged

Fix backwards compatability with Lua.workspace.checkThirdParty (take 2!)#2409
sumneko merged 2 commits intoLuaLS:masterfrom
9999years:fix-back-compat-take-2

Conversation

@9999years
Copy link
Contributor

I attempted to maintain backwards compatability in #2354 and #2406 but didn't fully understand the config type system.

This approach uses Type.Or and I even tested it to confirm that it works!

Thanks to @pysan3 for pointing out how a default would be used for invalid types (#2406 (comment)), and thanks to @sumneko for pointing out Type.Or (#2406 (comment)).

I attempted to maintain backwards compatability in LuaLS#2354 and LuaLS#2406 but
didn't fully understand the config type system.

This approach uses `Type.Or` and I even tested it to confirm that it
works!

Thanks to @pysan3 for pointing out how a default would be used for
invalid types and to @sumneko for pointing out `Type.Or`.
@sumneko sumneko merged commit 0e1b109 into LuaLS:master Nov 9, 2023
@pysan3
Copy link

pysan3 commented Nov 9, 2023

Very nice. Thank you!!

@pysan3
Copy link

pysan3 commented Nov 9, 2023

I think you can close this issue now @sumneko

#2407

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants